package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Select;


import java.util.List;

public interface SetmealDishMapper {


    void add(List<SetmealDish> setmealdish);


    List<SetmealDish> getById(Long id);

    List<Long> getSetmealIdsByDishIds(List<Long> dishIds);


    @Select("select * from setmeal_dish where setmeal_id = #{setmealId}")
    List<SetmealDish> getBySetmealId(Long id);


    void deleteBySetmealId(Long setmealId);


}
